package com.itheima.string;

import java.util.Scanner;

/*
    敏感词替换   replace方法
 */
public class Demo7 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        String s = sc.nextLine();

        String[] arr={"TMD","tmd","Tmd","SB","sb","NMD"};
        //2.替换敏感词
        String s1=s;

        for (int i = 0; i < arr.length; i++) {
            s1=s1.replace(arr[i],"**");

            System.out.println(s1);
        }

    }
}
